package com.wanmait.movie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wanmait.movie.entity.User;
import com.wanmait.movie.entity.request.user.UserLoginRequest;
import com.wanmait.movie.entity.request.user.UserRegisterRequest;
import com.wanmait.movie.util.AjaxResult;

import javax.servlet.http.HttpServletRequest;

/**
 * ClassName: UserService
 * Package: com.wanmait.movie.service
 * Description:
 *
 * @Author Fengxd
 * @Create 2023/12/5 10:53
 * @Version 1.0
 */
public interface UserService extends IService<User> {
    /**
     * 注册
     * @param userRegisterRequest 注册请求
     */
    AjaxResult register(UserRegisterRequest userRegisterRequest);

    AjaxResult login(UserLoginRequest userLoginRequest,HttpServletRequest request);

    /**
     * 查询用户信息列表
     */
    PageInfo<User> getUserList(String keyword, int pageNum, int pageSize);
}
